package com.mashibing.apiboss.service.impl;

import com.mashibing.apiboss.remote.ServiceDriverUserClient;
import com.mashibing.apiboss.service.DriverCarBindingRelationshipService;
import org.mashibing.dto.DriverCarBindingRelationship;
import org.mashibing.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: $dujunhua
 * @create: 2024/6/27 16:04
 * @description: 
 */
@Service
public class DriverCarBindingRelationshipServiceImpl implements DriverCarBindingRelationshipService {

    @Autowired
    private ServiceDriverUserClient serviceDriverUserClient;

    @Override
    public ResponseResult bind(DriverCarBindingRelationship driverCarBindingRelationship) {
        serviceDriverUserClient.bind(driverCarBindingRelationship);
        return ResponseResult.success();
    }

    @Override
    public ResponseResult unbind(DriverCarBindingRelationship driverCarBindingRelationship) {
        serviceDriverUserClient.unbind(driverCarBindingRelationship);
        return ResponseResult.success();
    }
}
